package finaldataanalysis;

public class FinalOb2 implements Comparable<FinalOb2> {

	String user;
	String usert;
	double lat; 
	double lon;
	long ts;
	
	int nrPLS;
	
	public FinalOb2(String u, int nr){
		this.user = u;
		this.nrPLS = nr;
	}

	public FinalOb2(String u, String t, double la, double lo, long tsp){
		this.user = u;
		this.usert = t;
		this.lat = la;
		this.lon = lo;
		this.ts = tsp;
	}
	
	
	
	public String toString(){
		return user+","+nrPLS;
	}
	public String toString2(){
		return user+", "+usert+", "+lat+", "+lon+", "+ts;
	}
	
	public int compareTo(FinalOb2 fo){
		return usert.compareTo(fo.usert);
	}
	
	
	
}
